﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Configuration.Install;
using System.Linq;
using System.Threading.Tasks;

namespace ChanTaiApi
{
    [RunInstaller(true)]
    public partial class ProjectInstaller : System.Configuration.Install.Installer
    {
        public ProjectInstaller()
        {
            InitializeComponent();
            var desc = System.Configuration.ConfigurationManager.AppSettings.Get("ServiceDescription");
            if (string.IsNullOrEmpty(desc)) desc = "诚泰商务接口后台服务,用于调用诚泰商务接口";
            var disname = System.Configuration.ConfigurationManager.AppSettings.Get("DisplayName");
            if (string.IsNullOrEmpty(disname)) disname = "诚泰API后台服务";
            this.serviceInstaller1.Description = desc;
            this.serviceInstaller1.DisplayName = disname;
            this.serviceInstaller1.ServiceName = Service.Name;
        }
    }
}
